<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">

<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>C:\Users\Guillermo\Twitfav\js\script.js</title><link rel="stylesheet" type="text/css" href="../../styles/main.css"><script language=JavaScript src="../../javascript/main.js"></script><script language=JavaScript src="../../javascript/prettify.js"></script><script language=JavaScript src="../../javascript/searchdata.js"></script></head><body class="ContentPage" onLoad="NDOnLoad();prettyPrint();"><script language=JavaScript><!--
if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>

<!--  Generated by Natural Docs, version 1.52 -->
<!--  http://www.naturaldocs.org  -->

<!-- saved from url=(0026)http://www.naturaldocs.org -->




<div id=Content><div class="CFile"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="script.js"></a>script.js</h1><div class=CBody><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#script.js" >script.js</a></td><td class=SDescription></td></tr><tr class="SGroup"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#animResources" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">animResources</a></td><td class=SDescription>Manages the animation and content load of the Resources div. </td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#collap" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">collap</a></td><td class=SDescription>Hide or display a resource (not the whole resource div). </td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#showMsg" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">showMsg</a></td><td class=SDescription>Shows a message in top of the page. </td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#showtweetwindow" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">showtweetwindow</a></td><td class=SDescription>Shows the tweet window, and adds some text to it.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#hidetweetwindow" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">hidetweetwindow</a></td><td class=SDescription>Hides the tweet window.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#tweetIt" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')">tweetIt</a></td><td class=SDescription>Tweets the tweet. </td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#twaction" >twaction</a></td><td class=SDescription>Sends an action to Twitter. </td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#updateCC" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')">updateCC</a></td><td class=SDescription>Updates the char count on the tweet box.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#showMsgBig" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')">showMsgBig</a></td><td class=SDescription>Shows a message in a box.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#getOut" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')">getOut</a></td><td class=SDescription>Gets the user out.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#refreshTW" id=link10 onMouseOver="ShowTip(event, 'tt10', 'link10')" onMouseOut="HideTip('tt10')">refreshTW</a></td><td class=SDescription>Refresh the tweet list.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>

<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Functions"></a>Functions</h3></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="animResources"></a>animResources</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function animResources(</td><td class="PParameter  prettyprint " nowrap>id,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>twid</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Manages the animation and content load of the Resources div.&nbsp; If the div is hidden, loads the resources through jQuery.get().&nbsp; If it&rsquo;s not hidden, checks the content owner.&nbsp; If it&rsquo;s the same tweet it&rsquo;s calling the function, hide the div.&nbsp; If it&rsquo;s from another tweet, hide the div, load the new content and show the div again.</p><h4 class=CHeading>Parameters</h4><p>id: It&rsquo;s the tweet order number.&nbsp; The first tweet is id=1, and so on. twid: The tweet ID, it comes from twitter.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="collap"></a>collap</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function collap(</td><td class="PParameter  prettyprint " nowrap>id</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Hide or display a resource (not the whole resource div).&nbsp; Uses jQuery animation.</p><h4 class=CHeading>Parameters</h4><p>id: number id of the resource to hide/display.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="showMsg"></a>showMsg</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function showMsg(</td><td class="PParameter  prettyprint " nowrap>txt</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Shows a message in top of the page.&nbsp; Hides it after 3 seconds.&nbsp; Uses jQuery animation.</p><h4 class=CHeading>Parameters</h4><p>txt: Message</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="showtweetwindow"></a>showtweetwindow</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function showtweetwindow(</td><td class="PParameter  prettyprint " nowrap>text,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>twid</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Shows the tweet window, and adds some text to it.</p><h4 class=CHeading>Parameters</h4><p>text: Text to add in the window. twid: Id of the tweet (for responses).</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="hidetweetwindow"></a>hidetweetwindow</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function hidetweetwindow()</td></tr></table></blockquote><p>Hides the tweet window.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="tweetIt"></a>tweetIt</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function tweetIt()</td></tr></table></blockquote><p>Tweets the tweet.&nbsp; It takes no arguments because they are loaded from the form elements.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="twaction"></a>twaction</h3><div class=CBody><p>Sends an action to Twitter.&nbsp; Supports unfavoriting and retweeting.</p><h4 class=CHeading>Parameters</h4><p>act: Action to do.&nbsp; Possible values: &lsquo;unfav&rsquo; or &lsquo;retweet&rsquo;. twid: Tweet&rsquo;s ID.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="updateCC"></a>updateCC</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function updateCC()</td></tr></table></blockquote><p>Updates the char count on the tweet box.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="showMsgBig"></a>showMsgBig</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function showMsgBig(</td><td class="PParameter  prettyprint " nowrap>txt</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Shows a message in a box.</p><h4 class=CHeading>Parameters</h4><p>txt: Obvious.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="getOut"></a>getOut</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getOut(</td><td class="PParameter  prettyprint " nowrap>p</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Gets the user out.</p><h4 class=CHeading>Parameters</h4><p>p: can be &lsquo;yes&rsquo; or &lsquo;no&rsquo;, indicates whether we should delete all of his data or not.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="refreshTW"></a>refreshTW</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function refreshTW()</td></tr></table></blockquote><p>Refresh the tweet list.</p></div></div></div>

</div><!--Content-->


<div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->


<div id=Menu><div class=MEntry><div class=MFile><a href="../func-php.html">func.php</a></div></div><div class=MEntry><div class=MFile id=MSelected>js\<wbr>script.js</div></div><div class=MEntry><div class=MFile><a href="../SQLfunc-php.html">SQLfunc.php</a></div></div><div class=MEntry><div class=MFile><a href="../miscel-php.html">What&rsquo;s this?</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Index</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MIndex><a href="../../index/General.html">Everything</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Files.html">Files</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Functions.html">Functions</a></div></div></div></div></div><script type="text/javascript"><!--
var searchPanel = new SearchPanel("searchPanel", "HTML", "../../search");
--></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option  id=MSearchEverything selected value="General">Everything</option><option value="Files">Files</option><option value="Functions">Functions</option></select></div></div><!--Menu-->



<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt1"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function animResources(</td><td class="PParameter  prettyprint " nowrap>id,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>twid</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Manages the animation and content load of the Resources div. </div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function collap(</td><td class="PParameter  prettyprint " nowrap>id</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Hide or display a resource (not the whole resource div). </div></div><div class=CToolTip id="tt3"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function showMsg(</td><td class="PParameter  prettyprint " nowrap>txt</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Shows a message in top of the page. </div></div><div class=CToolTip id="tt4"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function showtweetwindow(</td><td class="PParameter  prettyprint " nowrap>text,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>twid</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Shows the tweet window, and adds some text to it.</div></div><div class=CToolTip id="tt5"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function hidetweetwindow()</td></tr></table></blockquote>Hides the tweet window.</div></div><div class=CToolTip id="tt6"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function tweetIt()</td></tr></table></blockquote>Tweets the tweet. </div></div><div class=CToolTip id="tt7"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function updateCC()</td></tr></table></blockquote>Updates the char count on the tweet box.</div></div><div class=CToolTip id="tt8"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function showMsgBig(</td><td class="PParameter  prettyprint " nowrap>txt</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Shows a message in a box.</div></div><div class=CToolTip id="tt9"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getOut(</td><td class="PParameter  prettyprint " nowrap>p</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Gets the user out.</div></div><div class=CToolTip id="tt10"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function refreshTW()</td></tr></table></blockquote>Refresh the tweet list.</div></div><!--END_ND_TOOLTIPS-->




<div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div>


<script language=JavaScript><!--
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>